<%--
  Created by IntelliJ IDEA.
  User: xin
  Date: 2021/12/16
  Time: 23:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style>
    .box .nav{height:100%;width: 15%;overflow:scroll; float: left; background-color: rgb(51, 55, 68);}
    .box .nav::-webkit-scrollbar {display:none}
    .box .nav ol{padding: 0; margin: 0}
    .box .nav ol li{list-style: none;width: 100%;text-align: center;height: 25%}
    .box .nav ol li a{color: white;width: 100%;display: block;text-decoration: none; padding-top: 50px;padding-bottom: 50px}
    .box .nav ol li:hover{background-image: radial-gradient(rgb(51, 55, 68),#777);}


</style>
<nav class="nav">
    <ol>
        <c:if test="${sessionScope.admin.roleId==0}">
            <li><a href="${pageContext.request.contextPath}/toShowAllAdmin">管理员用户管理</a></li>
            <li><a href="${pageContext.request.contextPath}/toShowAllCustomer">顾客用户管理</a></li>
        </c:if>
        <c:if test="${sessionScope.admin.roleId==1}">
            <li><a href="${pageContext.request.contextPath}/toShowAllCustomer">顾客用户管理</a></li>
        </c:if>
        <li><a href="${pageContext.request.contextPath}/toShowAllCommodity">商品管理</a></li>
        <li><a href="${pageContext.request.contextPath}/toShowAllOrder">订单管理</a></li>
    </ol>
</nav>
